<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/rand-clcg4.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">rand-clcg4.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="rand-clcg4_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtw__rng.html">tw_rng</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a41890a3d155668208e9b73955f35a168"><td class="memItemLeft" align="right" valign="top">typedef int32_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#a41890a3d155668208e9b73955f35a168">tw_seed</a></td></tr>
<tr class="separator:a41890a3d155668208e9b73955f35a168"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85787fe0af7c2de3aca6af578875bb2"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#ab85787fe0af7c2de3aca6af578875bb2">SeedType</a></td></tr>
<tr class="separator:ab85787fe0af7c2de3aca6af578875bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a3481da76773e3f2621af85e5865484a5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a> { <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5a36cbdbd62f02fd7688d6dfc56c5b9670">InitialSeed</a>, 
<a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5a87c13b1e6a443e099ca4aa828db9e7a3">LastSeed</a>, 
<a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5a6f0f1982e69fd30c91d7d3b7097f8912">NewSeed</a>
 }</td></tr>
<tr class="separator:a3481da76773e3f2621af85e5865484a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c5ea1f9125b9534b62a80dbfa20dafb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structtw__rng.html">tw_rng</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#a3c5ea1f9125b9534b62a80dbfa20dafb">rng_init</a> (int v, int w)</td></tr>
<tr class="separator:a3c5ea1f9125b9534b62a80dbfa20dafb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a01bb629ddaaf87d947af060a239242"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#a0a01bb629ddaaf87d947af060a239242">rng_set_initial_seed</a> ()</td></tr>
<tr class="separator:a0a01bb629ddaaf87d947af060a239242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29a7a9b6a079ced3ba8339a66856fa82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#a29a7a9b6a079ced3ba8339a66856fa82">rng_init_generator</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g, <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a> Where)</td></tr>
<tr class="separator:a29a7a9b6a079ced3ba8339a66856fa82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf9c30f3350f93f4990e87c6f7b62f61"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#adf9c30f3350f93f4990e87c6f7b62f61">rng_set_seed</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g, uint32_t *s)</td></tr>
<tr class="separator:adf9c30f3350f93f4990e87c6f7b62f61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adebd26cc621778c2acde1591ba8e5959"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#adebd26cc621778c2acde1591ba8e5959">rng_get_state</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g, uint32_t *s)</td></tr>
<tr class="separator:adebd26cc621778c2acde1591ba8e5959"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0fa533d1469c99034b45cd302a5134c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#ad0fa533d1469c99034b45cd302a5134c">rng_write_state</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g, FILE *f)</td></tr>
<tr class="separator:ad0fa533d1469c99034b45cd302a5134c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc7b882f7220d319c89b7500c5d2395f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#adc7b882f7220d319c89b7500c5d2395f">rng_gen_val</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g)</td></tr>
<tr class="separator:adc7b882f7220d319c89b7500c5d2395f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa596cdb21f9c04984cc4806d7357d542"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="rand-clcg4_8h.html#aa596cdb21f9c04984cc4806d7357d542">rng_gen_reverse_val</a> (<a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *g)</td></tr>
<tr class="separator:aa596cdb21f9c04984cc4806d7357d542"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="ab85787fe0af7c2de3aca6af578875bb2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a> <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8h_source.html#l00030">30</a> of file <a class="el" href="rand-clcg4_8h_source.html">rand-clcg4.h</a>.</p>

</div>
</div>
<a class="anchor" id="a41890a3d155668208e9b73955f35a168"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int32_t* <a class="el" href="rand-clcg4_8h.html#a41890a3d155668208e9b73955f35a168">tw_seed</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8h_source.html#l00004">4</a> of file <a class="el" href="rand-clcg4_8h_source.html">rand-clcg4.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a3481da76773e3f2621af85e5865484a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a3481da76773e3f2621af85e5865484a5a36cbdbd62f02fd7688d6dfc56c5b9670"></a>InitialSeed</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a3481da76773e3f2621af85e5865484a5a87c13b1e6a443e099ca4aa828db9e7a3"></a>LastSeed</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a3481da76773e3f2621af85e5865484a5a6f0f1982e69fd30c91d7d3b7097f8912"></a>NewSeed</em>&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="rand-clcg4_8h_source.html#l00025">25</a> of file <a class="el" href="rand-clcg4_8h_source.html">rand-clcg4.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="aa596cdb21f9c04984cc4806d7357d542"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double rng_gen_reverse_val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8c_source.html#l00451">451</a> of file <a class="el" href="rand-clcg4_8c_source.html">rand-clcg4.c</a>.</p>

<p>References <a class="el" href="rand-clcg4_8h_source.html#l00011">tw_rng::b</a>, <a class="el" href="rand-clcg4_8h_source.html#l00037">tw_rng_stream::Cg</a>, <a class="el" href="rand-clcg4_8h_source.html#l00034">tw_rng_stream::count</a>, <a class="el" href="rand-clcg4_8h_source.html#l00016">tw_rng::m</a>, <a class="el" href="tw-util_8c_source.html#l00074">tw_error()</a>, and <a class="el" href="ross-extern_8h_source.html#l00164">TW_LOC</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="rand-clcg4_8h_aa596cdb21f9c04984cc4806d7357d542_cgraph.png" border="0" usemap="#rand-clcg4_8h_aa596cdb21f9c04984cc4806d7357d542_cgraph" alt=""/></div>
<map name="rand-clcg4_8h_aa596cdb21f9c04984cc4806d7357d542_cgraph" id="rand-clcg4_8h_aa596cdb21f9c04984cc4806d7357d542_cgraph">
<area shape="rect" id="node2" href="ross-extern_8h.html#a49ed2388aaae26e43280b7909c834aaa" title="tw_error" alt="" coords="197,5,267,32"/><area shape="rect" id="node3" href="network-mpi_8c.html#a2e139e8547a091c4c4ea0b445fe8dd1c" title="tw_net_abort" alt="" coords="315,5,413,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="adc7b882f7220d319c89b7500c5d2395f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double rng_gen_val </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8c_source.html#l00392">392</a> of file <a class="el" href="rand-clcg4_8c_source.html">rand-clcg4.c</a>.</p>

<p>References <a class="el" href="rand-clcg4_8h_source.html#l00037">tw_rng_stream::Cg</a>, and <a class="el" href="rand-clcg4_8h_source.html#l00034">tw_rng_stream::count</a>.</p>

</div>
</div>
<a class="anchor" id="adebd26cc621778c2acde1591ba8e5959"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rng_get_state </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3c5ea1f9125b9534b62a80dbfa20dafb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structtw__rng.html">tw_rng</a>* rng_init </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8c_source.html#l00338">338</a> of file <a class="el" href="rand-clcg4_8c_source.html">rand-clcg4.c</a>.</p>

<p>References <a class="el" href="rand-clcg4_8h_source.html#l00017">tw_rng::a</a>, <a class="el" href="rand-clcg4_8h_source.html#l00019">tw_rng::avw</a>, <a class="el" href="rand-clcg4_8h_source.html#l00018">tw_rng::aw</a>, <a class="el" href="rand-clcg4_8h_source.html#l00011">tw_rng::b</a>, <a class="el" href="rand-clcg4_8c_source.html#l00153">clamp_seed()</a>, <a class="el" href="rand-clcg4_8c_source.html#l00037">FindB()</a>, <a class="el" href="ross-global_8c_source.html#l00031">g_tw_rng_seed</a>, <a class="el" href="rand-clcg4_8h_source.html#l00016">tw_rng::m</a>, <a class="el" href="rand-clcg4_8c_source.html#l00077">MultModM()</a>, <a class="el" href="rand-clcg4_8c_source.html#l00023">rng</a>, <a class="el" href="rand-clcg4_8h_source.html#l00022">tw_rng::seed</a>, <a class="el" href="tw-util_8c_source.html#l00203">tw_calloc()</a>, and <a class="el" href="ross-extern_8h_source.html#l00164">TW_LOC</a>.</p>

<p>Referenced by <a class="el" href="ross-random_8c_source.html#l00007">tw_rand_init()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_cgraph.png" border="0" usemap="#rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_cgraph" alt=""/></div>
<map name="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_cgraph" id="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_cgraph">
<area shape="rect" id="node2" href="rand-clcg4_8c.html#af6fe13cfedc4e727feee7b28869e036e" title="clamp_seed" alt="" coords="118,5,210,32"/><area shape="rect" id="node3" href="rand-clcg4_8c.html#ac243c54261ecf17a1b848e9b9a2025a9" title="Find B to run CLCG4 backwards. " alt="" coords="136,56,192,83"/><area shape="rect" id="node4" href="rand-clcg4_8c.html#ab89ab01c93d79746cff9a7ed763b24d3" title="Returns(s*t) MOD M. " alt="" coords="123,107,205,133"/><area shape="rect" id="node5" href="ross-extern_8h.html#a445b1ed30cd2e8ef1f837e782a339a70" title="tw_calloc" alt="" coords="125,157,203,184"/><area shape="rect" id="node6" href="tw-util_8c.html#a57c62eebb6371a6d0d5ea5043f12f91b" title="pool_alloc" alt="" coords="259,132,339,159"/><area shape="rect" id="node8" href="tw-util_8c.html#a653cb2b88ee27b886ba5c854d5a0ba5c" title="tw_error" alt="" coords="264,183,333,209"/><area shape="rect" id="node7" href="tw-util_8c.html#a0611e23c33bb8c31272e79d876b8bcb0" title="my_malloc" alt="" coords="393,132,479,159"/><area shape="rect" id="node9" href="network-mpi_8c.html#a2e139e8547a091c4c4ea0b445fe8dd1c" title="tw_net_abort" alt="" coords="387,183,485,209"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_icgraph.png" border="0" usemap="#rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_icgraph" alt=""/></div>
<map name="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_icgraph" id="rand-clcg4_8h_a3c5ea1f9125b9534b62a80dbfa20dafb_icgraph">
<area shape="rect" id="node2" href="ross-random_8h.html#a5600e4cb011d29cc24a2408220d58909" title="tw_rand_init" alt="" coords="118,5,210,32"/><area shape="rect" id="node3" href="tw-pe_8c.html#a2a0e6607074d85f80badcf5f5da3547e" title="tw_pe_init" alt="" coords="259,5,341,32"/><area shape="rect" id="node4" href="network-mpi_8h.html#a625a50a6a03701b067693d7dc5ed483b" title="Starts the network library after option parsing. " alt="" coords="390,5,485,32"/><area shape="rect" id="node5" href="tw-setup_8c.html#a7d395f5590701f5526a161fcb1261b03" title="tw_init" alt="" coords="534,5,594,32"/><area shape="rect" id="node6" href="phold_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="643,5,693,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a29a7a9b6a079ced3ba8339a66856fa82"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rng_init_generator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="rand-clcg4_8h.html#a3481da76773e3f2621af85e5865484a5">SeedType</a>&#160;</td>
          <td class="paramname"><em>Where</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8c_source.html#l00239">239</a> of file <a class="el" href="rand-clcg4_8c_source.html">rand-clcg4.c</a>.</p>

<p>References <a class="el" href="rand-clcg4_8h_source.html#l00018">tw_rng::aw</a>, <a class="el" href="rand-clcg4_8h_source.html#l00037">tw_rng_stream::Cg</a>, <a class="el" href="rand-clcg4_8h_source.html#l00035">tw_rng_stream::Ig</a>, <a class="el" href="rand-clcg4_8h_source.html#l00027">InitialSeed</a>, <a class="el" href="rand-clcg4_8h_source.html#l00027">LastSeed</a>, <a class="el" href="rand-clcg4_8h_source.html#l00036">tw_rng_stream::Lg</a>, <a class="el" href="rand-clcg4_8h_source.html#l00016">tw_rng::m</a>, <a class="el" href="rand-clcg4_8c_source.html#l00077">MultModM()</a>, and <a class="el" href="rand-clcg4_8h_source.html#l00027">NewSeed</a>.</p>

<p>Referenced by <a class="el" href="rand-clcg4_8c_source.html#l00181">rng_set_seed()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_cgraph.png" border="0" usemap="#rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_cgraph" alt=""/></div>
<map name="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_cgraph" id="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_cgraph">
<area shape="rect" id="node2" href="rand-clcg4_8c.html#ab89ab01c93d79746cff9a7ed763b24d3" title="Returns(s*t) MOD M. " alt="" coords="179,5,261,32"/></map>
</div>
</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_icgraph.png" border="0" usemap="#rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_icgraph" alt=""/></div>
<map name="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_icgraph" id="rand-clcg4_8h_a29a7a9b6a079ced3ba8339a66856fa82_icgraph">
<area shape="rect" id="node2" href="rand-clcg4_8c.html#a9c251d8e1876abc122b55fe4156ce14c" title="rng_set_seed" alt="" coords="179,5,279,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0a01bb629ddaaf87d947af060a239242"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rng_set_initial_seed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="adf9c30f3350f93f4990e87c6f7b62f61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rng_set_seed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad0fa533d1469c99034b45cd302a5134c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rng_write_state </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtw__rng__stream.html">tw_rng_stream</a> *&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="rand-clcg4_8c_source.html#l00198">198</a> of file <a class="el" href="rand-clcg4_8c_source.html">rand-clcg4.c</a>.</p>

<p>References <a class="el" href="rand-clcg4_8h_source.html#l00037">tw_rng_stream::Cg</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
